#include <stdio.h>
// imma to make something good
/*

this need to write some sort of `flags`.
+___
|1  \
|    \
------
|
|

but you need to write how many flags is needed
*/
int main() {
    int a;
    scanf("%d", &a);
    // and there goes some shitcode that i dont care to
    for (int i = 1; i < a+1; ++i) {
        printf("*___    ");
    }
    printf("\n");
    for (int i = 1; i < a+1; ++i) {
        printf("|%d  \\   ", i);
    }
    printf("\n");
    for (int i = 1; i < a+1; ++i) {
        printf("|    \\  ");
    }
    printf("\n");
    for (int i = 1; i < a+1; ++i) {
        printf("------  ");
    }
    printf("\n");
    for (int i = 1; i < a+1; ++i) {
        printf("|       ");
    }
    printf("\n");
    for (int i = 1; i < a+1; ++i) {
        printf("|       ");
    }
    printf("\n");
    return 0; // as always :)
}
